#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UTable.ObjectManager
{
    public class InputMapResult
    {
        private String _controlID = null;
        private String _objectID = null;
        private bool _objectMapped = false;
        private bool _controlMapped = false;

        public InputMapResult()
        {
        }

        public InputMapResult(String objectId, String controlId)
        {
            this.ControlID = controlId;
            this.ObjectID = objectId;
        }

        public String ControlID
        {
            get
            {
                return _controlID;
            }
            set
            {
                _controlID = value;
                if (value != null)
                    _controlMapped = true;
                else
                    _controlMapped = false;
            }
        }

        public String ObjectID
        {
            get
            {
                return _objectID;
            }
            set
            {
                _objectID = value;
                if (value != null)
                {
                    _objectMapped = true;
                }
                else
                {
                    _objectMapped = false;
                }
            }
        }

        public bool ObjectMapped
        {
            get
            {
                return _objectMapped;
            }
        }

        public bool ControlMapped
        {
            get
            {
                return _controlMapped;
            }
        }
    }
}
